// router/modules/home.js
//注意：path必须跟pages.json中的地址对应，
const home = [
	{
	    path: '/',
		// redirect: "/pages/index/index",
	},
	{
		name: 'index',
	    path: '/pages/index/index',
		meta:{
			requiresAuth:false
		}
	},
	{
		name: 'need',
	    path: '/pages/need/need',
		meta:{
			requiresAuth: false
		}
	},
	{
		name: 'order',
	    path: '/pages/order/order',
		meta:{
			requiresAuth:false
		}
	},
	{
		name: 'mine',
	    path: '/pages/mine/mine',
		meta:{
			requiresAuth:false
		}
	},
	{
		name: 'login',
	    path: '/pages/login/login',
		meta:{
			requiresAuth:false
		}

	},
	{
		name:"avatar",
		path:"/pages/login/getAvatar",
		meta:{
			requiresAuth:true
		}
	},
	{
		name: 'protocol',
	    path: '/pages/subpages/protocol/protocol',
		meta:{
			requiresAuth:false
		}
	},
	{
		name: "search",
		path: "/pages/subpages/search/search",
		meta:{
			requiresAuth:false
		}
	},
	{
		name: "product",
		path: "/pages/subpages/Details/product_details",
		meta:{
			requiresAuth:false
		}
	},
	{
		name: "demand",
		path: "/pages/subpages/Details/demand_details",
		meta:{
			requiresAuth:false
		}
	},
	{
		name: 'sends_goods',
		path: '/pages/subpages/sends/sends_goods',
		meta:{
			requiresAuth:true
		}
	},
	{
		name: 'sends_need',
		path: '/pages/subpages/sends/sends_need',
		meta:{
			requiresAuth:true
		}
	},
	{
		name: 'order_state',
		path: '/pages/subpages/order_state/order_state',
		meta:{
			requiresAuth:true
		}
	},
	{
		name:"place_order",
		path:"/pages/subpages/place_order/place_order",
		meta:{
			requiresAuth:true
		}
	},
	{
		name:"operateSuccess",
		path:"/pages/subpages/operateSuccess/operateSuccess",
		meta:{
			requiresAuth:true
		}
	}
]
export default home
